package com.wx.mall.common.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "分页对象")
public class PageVo {
    @ApiModelProperty("第几页")
    @NotNull(message = "当前也不能为空")
    private int pageNum = 1;
    @ApiModelProperty("当前页的数量")
    @NotNull(message = "当前页数量不能为空")
    private int pageSize;
}
